package com.apple1.blogdao;

import com.apple1.blogentity.Role;
import com.apple1.blogentity.RoleExample;
import com.apple1.blogentity.form.RoleForm;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    long countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

	/**
	 * @return
	 */
	List<RoleForm> selectAll();
}